<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--引入ElementUI样式-->
    <link rel="stylesheet" href="../../plugins/elementui/index.css">
    <script src="../../js/vue.js"></script>
    <!--引入ElementUI组件库-->
    <script src="../../plugins/elementui/index.js"></script>
    <style>
        .el-dropdown {
            vertical-align: top;
        }
        .el-dropdown + .el-dropdown {
            margin-left: 15px;
        }
        .el-icon-arrow-down {
            font-size: 12px;
        }
    </style>

</head>
<body>
<div id="app">
    <el-dropdown split-button type="primary" @click="handleClick">
        更多菜单
        <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
        </el-dropdown-menu>
    </el-dropdown>
</div>

</body>
</html>
<script>
    var vue = new Vue({
        el:"#app",
        data:{},
        methods:{
            handleClick() {
                alert('button click');
            }
        }
    })
</script>